<template>
  <div class="boss">
    <head-page title="人才库" id="backstyle"></head-page>
    <Banner id="2" class="bannerId"></Banner>
    <div class="text title-center l-h">
      {{ this.$route.query.index }}.{{ this.$route.query.title }}
    </div>
    <div class="war">
      <div class="area-center bold-size">
        <div class="center">
          <div class="richText" v-html="content.context"></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { findById } from "@/api/index";
import Banner from "@/components/Home/BannerView.vue";
export default {
  data() {
    return {
      content: {},
    };
  },
  components: {
    Banner,
  },
  mounted() {
    // otherId: id
    findById({ otherId: this.$route.query.Id }).then((res) => {
      let data = res.data;
      if (data.code == 200) {
        this.content = data.data;
        this.content.context = this.dataHTML(this.content.context);
      }
    });
  },
};
</script>

<style scoped>
.boss {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 版心区域 */
.center {
  word-wrap: break-word;
  height: 100%;
  width: 100%;
}
.text {
  width: 100%;
  text-align: center;

}
</style>